package project.newCode.scenegraph;


public class LeafShape implements Component {

	private String material;
	private String geometry;
	
	
	public LeafShape(String material, String geometry) {
		super();
		this.material = material;
		this.geometry = geometry;
	}

	@Override
	public void enter(SceneTraverser t) {
		t.visitEntry(this);
		leave(t);
	}

	@Override
	public void leave(SceneTraverser t) {
		t.visitLeave(this);
	}

	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}

	public String getGeometry() {
		return geometry;
	}

	public void setGeometry(String geometry) {
		this.geometry = geometry;
	}
	
	public String toString() {
		return "LeafShape: shape "+geometry+" of material "+material;
	}

}
